﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ModelDto
{
    /// <summary>
    /// 返回微信用户手机号
    /// </summary>
    public  class WXAppletGetPhoneNumberResponse
    {
        /// <summary>
        /// 错误码
        /// -1	系统繁忙，此时请开发者稍候再试	
        /// 0	请求成功	
        /// 40029	code 无效
        /// </summary>
        public int errcode { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string errmsg { get; set; }

        /// <summary>
        /// 手机号信息
        /// </summary>
        public Phone_info phone_info { get; set; }
    }

    /// <summary>
    /// 手机号信息
    /// </summary>
    public class Phone_info
    {
        /// <summary>
        /// 用户绑定的手机号（国外手机号会有区号）
        /// </summary>
        public string phoneNumber { get; set; }
        /// <summary>
        /// 没有区号的手机号
        /// </summary>
        public string purePhoneNumber { get; set; }
        /// <summary>
        /// 区号
        /// </summary>
        public string countryCode { get; set; }
        /// <summary>
        /// 数据水印
        /// </summary>
        public Watermark watermark { get; set; }

        
    }
    /// <summary>
    /// 数据水印
    /// </summary>
    public class Watermark
    {
        /// <summary>
        /// 用户获取手机号操作的时间戳
        /// </summary>
        public int timestamp { get; set; }
        /// <summary>
        /// 小程序appid
        /// </summary>
        public string appid { get; set; }
    }
}
